#include<iostream>
using namespace std;
int main(){
    int a;
    cin>>a;
    long long b;
    b=a*31560000;
    cout<<b<<endl;
    return 0;
}
